<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">

    <h:head>
        <title>Facelet Title</title>
        
    </h:head>

    <h:body>
    <ui:composition template="./indexTemplate.xhtml">
        <ui:define name="body">

            

            <h:form id="formuAgregar">
                <h:outputText value="Nombre"></h:outputText>
                <h:inputText id="nombre" value="#{insertarUsuarioBean.nomUser}" required="true"/>
                <br />
                <h:outputText value="Apellido"></h:outputText>
                <h:inputText id="apellido" value="#{insertarUsuarioBean.apeUser}" />
                <br />
                <h:outputText value="Password"></h:outputText>
                <h:inputText id="password"
                             value="#{insertarUsuarioBean.passUser}" required="true" />
                <br />
                <h:outputText value="Mail"></h:outputText>
                <h:inputText id="mail" value="#{insertarUsuarioBean.mailUser}" required="true"/>
                <br />
                <h:outputText value="fechaNacUser"></h:outputText>
                <h:inputText id="fechaNacUser" value="#{insertarUsuarioBean.fechaNacUser}" >
                <f:convertDateTime pattern="dd/MM/yyyy"  />
                </h:inputText> 
                <br />
                <h:commandButton id="submit" value="Enviar" action="responseAgregarUsuario"/>

            </h:form>


        </ui:define>   
    </ui:composition >

</h:body>
</html>

